
// "Copyright [2021] <Copyright Xinchi Han>"
package inet.node.inet;

//
// This module connects network layer and link layer with
// each other and automatically dispatches messages and packets between them.
// It allows many different configurations from layered architectures where
// message dispatchers separate different communication layers to centralized
// architectures where a single message dispatcher is connected to all components.
//
// Configuring the dispatch mechanism:
//  - protocols must register by calling registerService and/or registerProtocol
//  - interfaces must register by calling registerInterface
//  - sockets must register by sending socket messages
//  - packets must have tags attached which specifie the destination protocol, interface or socket
//
simple Mmu
{
    parameters:
        @display("b=100,5,,,,1;");
        @networkNode;
        @dataplane;
        @controlplane;
        int numPorts = default(0);
        int pauseUnit = default(1000);
    gates:
        input upperLayerIn[];
        output upperLayerOut[];
        input lowerLayerIn[];
        output lowerLayerOut[];
}